package net.learn.piggy.initializer;

import net.learn.piggy.domain.MyBootBean;
import org.springframework.boot.BootstrapRegistry;
import org.springframework.boot.BootstrapRegistryInitializer;

public class MyBootstrapRegistryInitializer implements BootstrapRegistryInitializer {
    @Override
    public void initialize(BootstrapRegistry registry) {
        registry.register(MyBootBean.class, (context) -> new MyBootBean("MyBootBean"));
        System.out.println("MyBootstrapRegistryInitializer --> initialize");
    }
}
